<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Editable Alert Example</title>
<style>
    /* 弹框的基础样式 */
    #editAlertBox {
        display: none; /* 默认隐藏 */
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0,0,0,.5);
        z-index: 1000;
        text-align: center;
    }
    #editAlertBox button {
        margin-top: 10px;
    }
</style>
</head>
<body>

<!-- 修改弹框结构 -->
<div id="editAlertBox">
    <p>请修改代办事项:</p>
    <input type="text" id="editInput" data-id=""/>
    <button id="confirmEdit">确定</button>
    <button id="cancelEdit">取消</button>
</div>

<button onclick="showEditAlert('Initial Value')">Show Editable Alert</button>

<script src="editableAlert.js"></script>
</body>
</html>